using System;
using System.Collections;
using Generic.WebControls;

namespace Generic.Collections
{
	/// <summary>
	/// Summary description for AdapterCollection.
	/// </summary>
	public class AdapterCollection:DictionaryBase
	{
		private string GetKey(Type key)
		{
			return key.FullName;
		}
		public AdapterCollection()
		{}
		public void Add(Type key,AdapterBuilder value)
		{
			Dictionary.Add(GetKey(key),value);
		}
		public bool Contains(Type key)
		{
			return Dictionary.Contains(GetKey(key));
		}
		public void Remove(Type key)
		{
			Dictionary.Remove(GetKey(key));
		}
		public AdapterBuilder this[Type key]
		{
			get{return (AdapterBuilder)Dictionary[GetKey(key)];}
			set{Dictionary[GetKey(key)]=value;}
		}
	}
}
